module.exports = {
	onLoad() {
		//白名单
		const urlList = [
			'pages/index/index',
			'pages/material/materialdetail',
			'pages/project/project_detail/project_detail',
			'pages/epoxyfile/epoxydateil',
			'pages/project/project_img/imgPreview',
			'pages/user/qrcode'
		]
		//获取路由信息
		const pages = getCurrentPages()
		//获取当前路由
		let nowPage = pages[pages.length - 1].route

		setTimeout(() => {
			uni.hideLoading();
		}, 10000);
		// console.log(urlList.includes(nowPage), '获取当前路由');
		if (urlList.includes(nowPage) == false) {
			// #ifdef MP-WEIXIN
			uni.hideShareMenu()
			// #endif
		}
	},
}